package com.xyoto.community.po;

import com.xyoto.community.constant.CommonConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * ClassName:   用户查询辅助PO——问答详情模块
 * Author:      挽风
 * Date:        2020
 * Copyright:   2020 by 挽风1.0版本
 * Description:
 **/

@Data
@ApiModel("用户查询辅助PO")
public class UserPO implements Cloneable{

    @ApiModelProperty("用户id")
    private Integer id;

    @ApiModelProperty("昵称")
    private String nickname;

    @ApiModelProperty("头像")
    private String avatarUrl;

    @ApiModelProperty("用户个性签名")
    private String signature;

    @ApiModelProperty("头衔名称id")
    private Integer titleNameId;

    @ApiModelProperty("头衔logo的id")
    private Integer titleLogoId;

    public UserPO() {
        this.nickname = "";
        this.avatarUrl = "";
        this.signature = CommonConstant.DEFAULT_SIGNATURE ;
    }

    public UserPO(Integer id, String nickname, String avatarUrl, String signature) {
        this.id = id;
        this.nickname = nickname;
        this.avatarUrl = avatarUrl;
        this.signature = signature;
    }

    @Override
    public UserPO clone() throws CloneNotSupportedException {
        return (UserPO) super.clone();
    }

}
